package nezumi.gui;

import java.awt.Dimension;

import nezumi.state.State;

public class MapGui extends AGui {

	private static final long serialVersionUID = 1L;

	public MapGui(String name, Dimension canvasSize, State state,
			int sleepTime) {
		super(name, canvasSize, state, sleepTime);
	}

	/**
	 * Initialize the starting state of the entities (ship and aliens). Each
	 * entity will be added to the overall list of entities.
	 */
	protected void initEntities() {

		// the occupancy grid should be in the background, so we add it first
		entities.add(new OccupancyGridEntity(this.state, this));
		// then the target  map
		entities.add(new TargetGridEntity(this.state, this));
		// then the current path
		entities.add(new PathEntity(this.state, this));
		// then the target
		entities.add(new TargetEntity("sprites/cheese-small.gif", this.state,
				this));
		// at last, the mouse
		entities.add(new MouseEntity("sprites/nezumi-small.gif", this.state,
				this));
	}

}
